package com.teach.basic.dao;

import com.teach.basic.model.dto.AssociatorDTO;
import com.teach.basic.model.po.Associator;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 会员表 Mapper 接口
 * </p>
 * @version 1.0
 * @author hzz
 * @since 2020-02-18
 */
@Mapper
public interface AssociatorDao extends BaseMapper<Associator> {
    /**
     * 使用openid查询用户
     * @param openid
     * @return
     */
    public Associator selectByOpenId(String openid);

    /**
     * 更新登录时间
     * @param id
     */
    void updateLoginTime(Associator id);

    /**
     * @param entity 增加
     * @return
     */
    int insertSelective(AssociatorDTO entity);
}
